'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const ctx = this.ctx;
    const rolpic = await ctx.service.home.getRolpic();
    const themeinfo = await ctx.service.home.getThemeinfo();
    const classinfo = await ctx.service.home.getClassinfo();
    this.ctx.body = {
      rolpic,
      themeinfo,
      classinfo,
    };
  }
}

module.exports = HomeController;
